]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
appDisplay: Support the 'excluded-apps' key for app folders
authorJasper St. Pierre <jstpierre@mecheye.net>
Tue, 28 Jan 2014 17:27:22 +0000 (12:27 -0500)
committerJasper St. Pierre <jstpierre@mecheye.net>
Wed, 29 Jan 2014 19:02:27 +0000 (14:02 -0500)
https://bugzilla.gnome.org/show_bug.cgi?id=723179

js/ui/appDisplay.js

index ec71ad00a6b971a766030422bbe84a94dc9bc69b..748537d870f40da0445ea92c73916801106039dd 100644 (file)
@@ -1075,8 +1075,12 @@ const FolderIcon = new Lang.Class({
 
         this.view.removeAll();
 
+        let excludedApps = this._folder.get_strv('excluded-apps');
         let appSys = Shell.AppSystem.get_default();
         let addAppId = (function addAppId(appId) {
+            if (excludedApps.indexOf(appId) >= 0)
+                return;
+
             let app = appSys.lookup_app(appId);
             if (!app)
                 return;